Putting COPY in S-C Assembler II

I just looked at the first AAL Disk of the Quarter.  The first item of business was to incorporate the changes into my copy of the assembler.

The lower-case mod and the .DA mod went just as described in AAL.  However, when it came to the COPY stuff, I found that I wasn't really happy to load it at $800 and hope it didn't get clobbered.  Here's what I did....


I changed the origin of the COPY program to $25A0 (since I already have a special printer driver at $2500.259F).  The COPY program runs from $25A0 through $266F, so I changed the symbol table origin by typing "$1011:27".  This sets the bottom of the symbol table at $2700.  I put a ".TF B.SC COPY MODS" line in, to write the object on a binary file.

After assembling, I BLOADed the file B.SC COPY MODS into memory.  Then I could have plugged in the USR vector like Bob suggested, but I wanted a real "COPY" command.  Therefore I searched around in the assembler until I found the command table.  I put the letters "COP" and the program address over the top of the tape SAVE command entry, by typing "1246:43 4F 50 9F 25".  I felt the loss of the tape SAVE command was worth it, to get a real COPY command.

Now the command "COPY 1000,1050,2500" will copy lines 1000 through 1150 into the pplace right before line 2500.  The USR command is still intact and I'm ready for some more changes!
